#ifndef _GUI_
#define _GUI_

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "decode_image.h"
#include "pngle.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_err.h"
#include "esp_log.h"
#include "esp_system.h"
#include "esp_vfs.h"
#include "esp_spiffs.h"
#define WAIT(x)	vTaskDelay(x)
#define RED			0xf800
#define GREEN			0x07e0
#define BLUE			0x001f
#define BLACK			0x0000
#define WHITE			0xffff
#define GRAY			0x8c51
#define YELLOW			0xFFE0
#define CYAN			0x07FF
#define PURPLE			0xF81F
uint8_t JPEGshow( char * file, int width, int height,int _cols,int _rows); 
void png_init();
void png_draw(pngle_t *pngle, uint32_t x, uint32_t y, uint32_t w, uint32_t h, uint8_t rgba[4]);
void png_finish(pngle_t *pngle);

uint8_t PNG_SHOW( char * file, int width, int height,uint8_t *data,uint8_t w);
#endif